<template>
    <view class="complete">
        <view class="completeImg">
            <image src="https://smosun-minapp.oss-cn-shanghai.aliyuncs.com/weapp/img/mall/payend.png" alt="" />
            <view class="completeImg_text"><text class="textO">— </text>支付完成<text class="textT"> —</text></view>
        </view>
        <view class="completeBut">
            <button @click="goToMall">继续逛逛</button>
            <button @click="goToOrder">查看订单</button>
        </view>
    </view>
</template>

<script>
export default {
    data() {
        return {};
    },
    methods: {
        goToMall() {
            uni.switchTab({
                url: '/pages/mall/mall',
            });
        },
        goToOrder() {
            uni.redirectTo({
                url: '/packageOrder/pages/orderlist/orderlist',
            });
        },
        subscribeMessage() {
            uni.requestSubscribeMessage({
                tmplIds: [
                    '4WlKLcNqWHQxN6WYburUGD8GdmGg7IcRmDg0x3u_Rds',
                    'OB01OzknOemOioXmf-SzbogLAC8FjjFhRuxKxLX7uUM',
                    'xX3kwdzC5I-61OxI_yUIGhO_BozN7a8U-PVGjORIlJU',
                ],
                success(res) {},
            });
        },
    },
    onshow() {
        this.subscribeMessage();
    },
};
</script>

<style></style>
